package com.freesky.biz.icbc.service.impl;

import com.freesky.biz.icbc.domain.TAigouActivity;
import com.freesky.biz.icbc.domain.TMarketingActivity;
import com.freesky.biz.icbc.mapper.AigouActivityMapper;
import com.freesky.biz.icbc.mapper.MarketingActivityMapper;
import com.freesky.biz.icbc.service.IAigouActivityService;
import com.freesky.biz.icbc.service.IMarketingActivityService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class AigouActivityServiceImpl implements IAigouActivityService {

    private static final Logger logger = LoggerFactory.getLogger(AigouActivityServiceImpl.class);

    @Autowired
    private AigouActivityMapper aigouActivityMapper;

    @Override
    public List<TAigouActivity> selectAigouActivityList(TAigouActivity entity) {
        return aigouActivityMapper.selectAigouActivityList(entity);
    }

    @Override
    public TAigouActivity selectAigouActivityById(String id) {
        return aigouActivityMapper.selectAigouActivityById(id);
    }

    @Override
    public int insertAigouActivity(TAigouActivity entity) {
        return aigouActivityMapper.insertAigouActivity(entity);
    }

    @Override
    public int updateAigouActivity(TAigouActivity entity) {
        return aigouActivityMapper.updateAigouActivity(entity);
    }

    @Override
    public int deleteAigouActivityById(String id) {
        return aigouActivityMapper.deleteAigouActivityById(id);
    }

    @Override
    public int deleteAigouActivityByIds(String[] ids) {
        return aigouActivityMapper.deleteAigouActivityByIds(ids);
    }
}
